package coml.jiyun.hp.day03weinfo.presenter;

import coml.jiyun.hp.day03weinfo.base.BasePresenter;
import coml.jiyun.hp.day03weinfo.bean.NaviBean;
import coml.jiyun.hp.day03weinfo.model.MainModel;
import coml.jiyun.hp.day03weinfo.net.ResultCallBack;
import coml.jiyun.hp.day03weinfo.view.MainView;

public class MainPresenter extends BasePresenter<MainView>{

    private MainModel mainModel;

    public void getData(){
        mainModel.getData(new ResultCallBack<NaviBean>() {
            @Override
            public void onSuccess(NaviBean naviBean) {

            }

            @Override
            public void onFail(String str) {

            }
        });
    }
    //初始化m层的地方
    @Override
    protected void initModel() {
        mainModel = new MainModel();
        addModel(mainModel);
    }
}